|
Menu location |
---|
Meshes → Create Mesh from Shape |
Workbenches |
Mesh |
Default shortcut |
None |
Introduced in version |
- |
See also |
None |
Această comandă creează o plasă dintr-un obiect tip formă.
The inverse operation is Part ShapeFromMesh from the Part Workbench.
Doar selectând Meshes → Create Mesh from shape... vă va oferi un meniu suplimentar pentru a vă alege forma de transformat în plasă
Abaterea de suprafață: Dacă acest număr este mai mic, ochiul devine mai fin. Valoarea cea mai mică este de 0,001.
Puteți alege între plase fiind:
Pentru ca Mesh fiind "definit de utilizator", puteți seta aceste valori:
Pentru fiecare opțiune principală puteți de asemenea să alegeți:
Mefisto Mesher
Netgen Mesher
0.1
- 1.0
range.0.2
- 10.0
range.0.2
- 10
range.For Linux users: the external Gmsh module is required.
0
to have this size automatically determined.0
to have this size automatically determined.See: Mesh Feature.
See also: FreeCAD Scripting Basics.
To create a mesh object from a shape object use the meshFromShape
method of the MeshPart module. This method has several signatures. The signature determines the mesher that will be used. The example below uses the Mefisto mesher signature.
import FreeCAD, Part, Mesh, MeshPart
cyl = FreeCAD.ActiveDocument.addObject("Part::Cylinder","Cylinder")
FreeCAD.ActiveDocument.recompute()
msh = FreeCAD.ActiveDocument.addObject("Mesh::Feature", "Mesh")
msh.Mesh = MeshPart.meshFromShape(Shape=cyl.Shape, MaxLength=1)
msh.ViewObject.DisplayMode = "Flat Lines"